// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App' //完整写法是import App from './App.vue'
import router from './router' //完整写法是import router from './router/index.js'
// 引入elementUI组件库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false

//使用ElementUI插件
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app', //这里#app是挂载到index.html的<div id="app"></div>
  router, //完整写法是 router:router，第二个router是import router from './router' 中引入的
  components: {
    'lmyApp': App
  },
  template: '<lmyApp/>' //内部模板 这里的'<lmyApp/>'就是上面的components引入的组件的名字
})
